import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import {Route,HashRouter as Router } from 'react-router-dom'

import {store,components} from "./store/index"
import "./static/css/default.css";
import "./static/css/main.css";




import Volume from "./page/volume"

// -------------


// //定义组件
// class App extends Component{
//     render() {
//         const {text, onChangeText, onButtonClick,sasas} = this.props;
//         return (
//             <div>
//                 <h1>{text}/{sasas}</h1>
//                 <button onClick={onButtonClick}>加</button>
//                 <button onClick={onChangeText}>减</button>
//             </div>
//         );
//     }
// }
//
// //连接组件
// App = components(App);
let Volumes = components(Volume);



//渲染组件
ReactDOM.render(
    <Provider store={store}>
        <Router>
            <Route path="/" component={Volumes}></Route>
        </Router>
    </Provider>,
    document.getElementById('root')
)
